<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>测试节点</title>
<link type="text/css" rel="stylesheet" href="main.css"/>
<script src="jquery.js" language="javascript" type="text/javascript"></script>
<script src="base.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<div class="mtitle">
  <div class="lbox">测试节点</div>
</div>
<table class="tform">
  <tbody>
    <tr>
      <td align="left"></td>
      <td align="right">
       	<input type="button" name="b115" value="开始采集" class="coolbg np" style="width:120px" onClick="location='co_gather_start.php?nid=<?php echo $nid; ?>';" />
          	<input type="button" name="b11" value="返回采集节点管理页" class="coolbg np" style="width:160" onClick="location.href='co_main.php';" />
      </td>
    </tr>
  </tbody>
</table>
<table _dlist="line" class="tlist" align="center">
  <tr>
    <td height="94" bgcolor="#FFFFFF" align="center">
    	<table width="98%" border="0">
        <tr bgcolor="#F9FCF3"> 
          <td width="13%" height="24" align="center"><b>节点名称：</b></td>
          <td width="87%">&nbsp;<?php echo($co->noteInfos['notename']); ?></td>
        </tr>
        <tr> 
          <td height="24" align="center">列表测试信息：</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" colspan="2">
            <textarea name="r1" class="txt" id="r1" style="width:100%;height:250px"><?php
            	$testurl = '';
            	$turls = $co->Testlists($testurl);
            	echo "测试的列表网址： $testurl\r\n";
            	if(isset($turls[0]['link']))
            	{
            		$turl = $turls[0]['link'];
            		print_r($turls);
            	} else {
            		$turl = '';
            	}
            	$turl = (!empty($co->artNotes['previewurl']) ? $co->artNotes['previewurl'] : $turl);
           ?></textarea> 
          </td>
        </tr>
        <tr> 
          <td height="24">网页规则测试：</td>
          <td>(DedeEIMS里时间日期字段一般是整数类型，如果您看到pubdate、senddate是整数，那种属正常的情况)</td>
        </tr>
        <tr> 
          <td height="24" colspan="2">
         单个网页测试网址: <?php echo "$turl \r\n"; ?>
         <br />
         <textarea name="r2" class="txt" id="r2" style="width:100%;height:250px"><?php
         	if($turl!=''){
         		echo $co->TestArt($turl);
         	}
         	else
         	{
         		echo "列表规则错误，找不到任何文章网址！";
         	}
         ?></textarea>
		  </td>
        </tr>
      </table>
      </td>
  </tr>
  <tr> 
      <td height="60" align="center" bgcolor="#FFFFFF">
      <button class="btn1" type="button" onClick="location='co_edit.php?nid=<?php echo $nid; ?>';">重新修改节点配置</button>
      &nbsp;
       <button class="btn1" type="button" onClick="location='co_gather_start.php?nid=<?php echo $nid; ?>';" >确定并开始采集</button>
      </td>
  </tr>
  <tr> 
    <td height="28" bgcolor="#FAFAF1">&nbsp;</td>
  </tr>
</table>
</body>
</html>